import Cookies from 'js-cookie'

const TokenKey = 'Editor-438C'
export function getToken() {
  const strToken = Cookies.get(TokenKey)
  if (!strToken || strToken == 'undefined') {
    return false
  }
  return strToken
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  Cookies.remove('Editor-438C');
  return true
}


